package com.zhsource.system.mapper;

import com.zhsource.system.domain.Course;
import com.zhsource.system.query.CourseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {

    List<Course> list();

    Course selectById(Long id);

    void insert(Course course);

    void update(Course course);

    void delete(Long id);

    void batchDel(List<Long> ids);

    Integer total(CourseQuery courseQuery);

    List<Course> page(CourseQuery courseQuery);

    List<Course> getAll();

    void batchAdd(List<Course> courses);
}